package com.woniuxy.services;

import com.woniuxy.entitys.TbBed;
import com.woniuxy.entitys.TbMalfunction;
import com.woniuxy.entitys.TbSection;

import java.util.List;

/**
 * 故障列表
 */
public interface FaultService {

    List<TbMalfunction> getAllFault(Integer pageNum, Integer pageSize, Integer faultStatus);

    TbMalfunction getAllFaultById(Integer maid);

    boolean addFault(TbMalfunction tbMalfunction);

    boolean updateFault(TbMalfunction tbMalfunction);

    TbSection getSectionInfo(Integer uid);

    List<TbBed> getNoFaultBed(Integer hid);

    List<TbMalfunction> getAllFaultByFuzz(Integer pageNum, Integer pageSize, String search);

    List<TbMalfunction> getFaultList();

    List<TbMalfunction> getAllFaultByCascade(Integer pageNum, Integer pageSize, List<Integer> cascadeValue);

    boolean acceptFailure(List<Integer> list);

    boolean cancelFailure(List<Integer> maids, List<Integer> bids);
}
